<?php $this->fetch('public/head') ?>
<div class="layui-tab layui-tab-brief">
    <ul class="layui-tab-title">
        <li class="layui-this">信息列表</li>
        <!-- <li class=""><a href="<?php echo url('add') ?>">添加信息</a></li> -->
    </ul>
    <div class="layui-tab-content">
        <hr>
        <form action="" method="post" class="ajax-form">
         
           
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                    <tr>
                       
                        <!-- <th style="width: 30px;">ID</th> -->
                        <!-- <th style="width: 30px;">微信公众号识别ID</th> -->
                        <th>姓名</th>
                        <th>投递职位</th>
                        <th>投递时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($list as $v): ?>
                    <tr>
                        <td><?php echo $v['userdata']['name'] ?></td>
                        <td><?php echo $v['jobdata']['jobname'] ?></td>
                        <td><?php echo $v['add_time'] ?></td>
                        <td>
                            <a href="<?php echo $v['type']==1?url('jianlis/edit?id='.$v['jlid']):url('jianlisqz/edit?id='.$v['jlid']); ?>" class="layui-btn layui-btn-normal layui-btn-xs">查看简历</a>
                            <!-- <a class="layui-btn layui-btn-xs code" data-val="<?php echo $v['id'] ?>">二维码文本</a> -->
                            <a href="<?php echo url('job/edit?id='.$v['jobdata']['jobid']) ?>" class="layui-btn layui-btn-normal layui-btn-xs">查看职位</a>
                        </td>
                    </tr>
                    <?php endforeach; ?>
                    </tbody>
                </table>
                <!--分页-->
                <?php echo $list->render() ?>
            </div>
        </form>
    </div>
</div>

<?php $this->fetch('public/script') ?>

<script>
    $('.code').click(function(){
        layer.alert('http://zl.huisheng.com/index/order/qd/nid/'+$('.code').data('val')+'.html');
    })
</script>
